#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>  
int main(void){
	int flag = 1;
	char c;
	c = getchar();
	while (c != '\n'){
		if (flag == 1){
			flag = 0;
			if (c >= 'a'&&c <= 'z') c -= 32;
		}
		if (c == ' '){
			flag = 1;
		}
		putchar(c);
		c = getchar();
	}
	return 0;
}